package com.STS.ELearning.Events
{
	import com.STS.ELearning.VO.KullanicilarVO;
	
	import flash.events.Event;
	
	public class KullaniciEvent extends Event
	{
		public function KullaniciEvent(kullanici:KullanicilarVO,type:String,hasError:Boolean=false, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			this.kullanici=kullanici;
			
		}
	
		public static const KULLANICI_EKLENDI:String = "KullaniciEklendi";
		
		public static const KULLANICI_GIRIS_YAPTI:String = "KullaniciGirisYapti";
		
		public static const AKTIF_KULLANICI_YOK:String = "AktifKullaniciYok";
		public static const KULLANICI_DUZENLENDI:String="KullaniciDuzenlendi";
		/** 
		 * A text message that can be passed to an event handler 
		 * with this event object. 
		 */ 
		public var message:String; 
		
		private var kullanici:KullanicilarVO;
		public function get Kullanici():KullanicilarVO
		{
			return this.kullanici;
		}
		/** 
		 *Constructor. 
		 *@param message The text to display when the alarm goes off. 
		 */ 
		public override function clone():Event 
		{ 
			return new KullaniciEvent(kullanici,type,bubbles,cancelable); 
		} 
		
		/** 
		 * Returns a String containing all the properties of the current 
		 * instance. 
		 * @return A string representation of the current instance. 
		 */ 
		public override function toString():String 
		{ 
			return formatToString("KullaniciEvent",kullanici, type, bubbles, cancelable,eventPhase, message); 
		}
	}
}